package cn.broadsense.biz.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * 点位组织架构
 *
 * @author bs
 * @TableName t_channel_org
 */

@Data
@ApiModel("点位组织树")
public class ChannelOrgTreeDto implements Serializable {
    private static final long serialVersionUID = 1707044722035013303L;
    /**
     * id
     */
    private Integer id;

    /**
     * 组织编码
     */
    @ApiModelProperty("组织编码")
    private String orgCode;

    /**
     * 组织名称
     */
    @ApiModelProperty("组织名称")
    private String name;

    /**
     * 父类编码
     */
    @ApiModelProperty("父类编码")
    private String parentOrgCode;

    @ApiModelProperty("层级")
    private Integer layer;

    @ApiModelProperty("部门id")
    private Long deptId;

    @ApiModelProperty("全路径")
    private String fullOrgCode;

    @ApiModelProperty("点位数量")
    private Integer channelQty = 0;

    @ApiModelProperty("在线点位数量")
    private Integer onlineChannelQty = 0;

    @ApiModelProperty("子节点")
    private List<ChannelOrgTreeDto> childrenList = new LinkedList<>();
}